package com.heima.feign.article.fallback;

import com.heima.feign.article.IArticleClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.stereotype.Component;

/**
 * @author jack
 * @data 2024 15:05
 */
@Component
public class ArticleClientFallback implements IArticleClient {
    /**
     * 新增或修改app文章信息
     *
     * @param articleDto
     * @return
     */
    @Override
    public ResponseResult saveArticle(ArticleDto articleDto) {
        return ResponseResult.okResult("服务器正忙!");
    }
}
